extends "../calxJS_Hide/calxJS_Hide.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "木星诺"                   # 角色的名称
	attCoe.atkRan = 1                 # 攻击距离
	attCoe.maxHp = 4                  # 最大生命（每点代表112.5基础数值，取整数，下同）
	attCoe.atk = 2                    # 攻击力（每点代表8.5）
	attCoe.mgiAtk = 4                 # 魔法攻击（每点代表13.7）
	attCoe.def = 3                    # 物理防御（每点代表15）
	attCoe.mgiDef = 3                 # 魔法防御（每点代表16.6）
	atkEff = "atk_dang" 
	xb = "木"
	lv = 1    
	addSkillTxt("[腐蚀之种]将腐蚀之种击入敌方体内，造成130%木系魔法伤害，40%概率减少目标20%魔抗4秒[CD:7]")
	addCdSkill("fszz",7)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "fszz":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("腐蚀之种", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.mgiAtk*1.3,Chara.HurtType.MGI,Chara.AtkType.SKILL)
		if sys.rndPer(40):
			aiCha.addBuff(jianmo.new(4))

class jianmo:
	extends Buff
	var dispelable = false
	func _init(lv = 1):
		attInit()
		id = "jianmo"
		life = lv
		isNegetive=true
		att.mgiDefL -= 0.2